<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>登录界面</title>
</head>
<body onload="document.f.username.focus();" style="background-color: cadetblue">
<h3>简单登录界面</h3>
<form name="f" action="/login" method="post">
    <table>
        <tr>
            <td>用户名：</td>
            <td><input type="text" name="username" value=""></td>
        </tr>
        <tr>
            <td>密码：</td>
            <td><input type="password" name="password" /></td>
        </tr>
        <tr>
            <td colspan="2"><input name="submit" type="submit" value="登录"></td>
        </tr>
        <tr>
            <td>自动登录</td>
            <td><input id="remember-me" name="remember-me" type="checkbox", checked="checked"></td>
        </tr>
    </table>
</form>
<p style="color: red " th:if="${param.error}">用户名或密码错误，请重新登录！</p>
</body>
</html>